<?php

require_once 'frases.php';
class search_search_populatorModel extends Object{
    
    public function populate() {
        $this->LoadModel('search/documento', 'doc');
        $docs  = getDocumentos();
        $model = 'search/populator';
        $link  = 'search/populator/show/';
        foreach($docs as $cod => $document){
            $this->doc->indexar_documento($document, $model, $link."$cod");
        }
    }
    
    
}

?>